import request from '@/utils/request'
// 获取库区列表
export const getAreaList = params => request.get('/api/area/pageDetail', { params })
// 修改库区状态
export const modifyArea = data => request.put('/api/area', data)
// 删除库区
export const deleteArea = params => request.delete('/api/area', { params })
// 添加库区
export const newArea = data => request.post('/api/area', data)
// 获取库区详情
export const getAreaDetail = id => request.get('/api/area/' + id)
// 获取所有库区
export const getAreaAll = params => request.get('/api/area/list', { params })
// 获取库区状态
export const getOverviewArear = id => request.get('/api/area/overview/' + id)
